package change;

import dao.PayrollDatabase;
import dao.imp.GpayrollDatabase;
import domain.Employee;
import exception.EmployeeException;

public class ChangeAddressTransaction extends ChangeEmployeeTransaction {
    private PayrollDatabase payrollDatabase = new GpayrollDatabase();
    private String newAddress;

    public ChangeAddressTransaction(int empid, String newAddress) {
        super(empid);
        this.newAddress = newAddress;
    }


    @Override
    public void change(Employee employee) {
        employee.setAddress(newAddress);
    }

}
